From fb3213f17a7c047b05b6d2df1bc967d59574548f Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sun, 5 Feb 2017 20:53:11 +0200 Subject: [PATCH] Fix the documentation for the PROFILE envvar passed to build scripts Closes #2084. --- src/doc/environment-variables.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/doc/environment-variables.md b/src/doc/environment-variables.md index 30aed822a..01ed64b22 100644 --- a/src/doc/environment-variables.md +++ b/src/doc/environment-variables.md @@ -84,8 +84,7 @@ let out_dir = env::var("OUT_DIR").unwrap(); be useful to pass a `-j` parameter to a system like `make`. * `OPT_LEVEL`, `DEBUG` - values of the corresponding variables for the profile currently being built. -* `PROFILE` - name of the profile currently being built (see - [profiles][profile]). +* `PROFILE` - `release` for release builds, `debug` for other builds. * `DEP__` - For more information about this set of environment variables, see build script documentation about [`links`][links]. * `RUSTC`, `RUSTDOC` - the compiler and documentation generator that Cargo has -- 2.30.2